﻿<?
class index extends c{
	function def(){
		$sql="select * from blog order by id desc";
		$rs=mysql_query($sql);
		while($row=mysql_fetch_Array($rs)){
			$blogs.='<li><a href="?blog,view,'.$row['id'].'">'.$row['title'].'</a></li>';
		}
		$this->set(array(
		'$title'=>"miiwaa.cn",
		'$h1'=>"miiwaablog",
		'$blogs'=>$blogs
		));
	}
}
?>